#!/usr/bin/ruby
require 'mysql'

begin
  my = Mysql.new("db1.shermanstravel.com", "webuser", "0xQ!=_7R", 'st')
  res = my.query("SELECT * FROM people where id > 1002 limit 10")
  res.each do |row|
    printf "First Name: %s, Last Name : %s\n", row[3], row[4]
  end
end